package com.mes.entity;

import java.io.Serializable;

/**
 * 工厂建模
 * @TableName mes_factory_model
 */
public class MesFactoryModel implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 物料档案编号
     */
    private Long materialId;

    /**
     * 生产线名称
     */
    private String productLineName;

    /**
     * 描述
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 物料档案编号
     */
    public Long getMaterialId() {
        return materialId;
    }

    /**
     * 物料档案编号
     */
    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    /**
     * 生产线名称
     */
    public String getProductLineName() {
        return productLineName;
    }

    /**
     * 生产线名称
     */
    public void setProductLineName(String productLineName) {
        this.productLineName = productLineName;
    }

    /**
     * 描述
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 描述
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MesFactoryModel other = (MesFactoryModel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
            && (this.getProductLineName() == null ? other.getProductLineName() == null : this.getProductLineName().equals(other.getProductLineName()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
        result = prime * result + ((getProductLineName() == null) ? 0 : getProductLineName().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", materialId=").append(materialId);
        sb.append(", productLineName=").append(productLineName);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}